package team.first.mongodb.doc;

import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.mongodb.doc
 * @Date: 2021/12/9 13:23
 * @Description:
 */
@Entity(value = "comment", useDiscriminator = false)
@ToString
@Accessors(chain = true)
@Getter
@Setter
public class CommentDoc {
    @Id
    private ObjectId objId;
    private Integer id;
    private Integer movieId;
    private Integer userId;
    private String content;
    private String createdAt;
    private Integer rating;
    private String nickname;
    private String avatar;
}
